import request from "@/utils/request";

//分页查询课程订单
export const listByPage = (current, size) => request.get('/courseOrder/listByPage/' + current + '/' + size)

//查询所有课程订单
export const listAll = () => request.get('/courseOrder/listAll')

//分页查询指定手机号课程订单
export const getByPhone = (phone, current, size) => request.get('/courseOrder/getByPhone/' + phone + "/" + current + "/" + size)

//添加新订单
export const saveOrder = (courseOrder) => request.post('/courseOrder/saveOrder', courseOrder)